package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * dh_menus_relations
 * @author 
 */
public class MenusRelationsNew extends MenusRelationsNewKey implements Serializable {
    private String menuId;

    private String resCategoryName;

    private static final long serialVersionUID = 1L;

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getResCategoryName() {
        return resCategoryName;
    }

    public void setResCategoryName(String resCategoryName) {
        this.resCategoryName = resCategoryName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MenusRelationsNew other = (MenusRelationsNew) that;
        return (this.getMenuResId() == null ? other.getMenuResId() == null : this.getMenuResId().equals(other.getMenuResId()))
            && (this.getResCategoryId() == null ? other.getResCategoryId() == null : this.getResCategoryId().equals(other.getResCategoryId()))
            && (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId()))
            && (this.getResCategoryName() == null ? other.getResCategoryName() == null : this.getResCategoryName().equals(other.getResCategoryName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMenuResId() == null) ? 0 : getMenuResId().hashCode());
        result = prime * result + ((getResCategoryId() == null) ? 0 : getResCategoryId().hashCode());
        result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode());
        result = prime * result + ((getResCategoryName() == null) ? 0 : getResCategoryName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", menuId=").append(menuId);
        sb.append(", resCategoryName=").append(resCategoryName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}